/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 占位 POST /auth/%E5%8D%A0%E4%BD%8D */
export async function authE58Da0E4Bd8DUsingPost({
  body,
  options,
}: {
  body: API.zhanweiUsingPOSTObj;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/auth/%E5%8D%A0%E4%BD%8D', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 后台职工注册 POST /auth/backstageRegister */
export async function authBackstageRegisterUsingPost({
  body,
  options,
}: {
  body: API.SysUserBo63ae350763584a1f904a239264706bd3;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/auth/backstageRegister', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 当前登录人 POST /auth/getLoginUser */
export async function authGetLoginUserUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingSysUserduixiang>('/auth/getLoginUser', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 登录-后台-中台 POST /auth/login */
export async function authLoginUsingPost({
  body,
  options,
}: {
  body: API.SysUserVo8d89c903427e4895Bb8096ed76183d23;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/auth/login', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 退出登录-后台-中台 POST /auth/logout */
export async function authLogoutUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/auth/logout', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 二级认证-后台 POST /auth/openSafe */
export async function authOpenSafeUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.authOpenSafeUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/auth/openSafe', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
